package com.gxa.ehome.pojo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class Role implements Serializable {
    private Integer id;
    private String name;
    private Integer pid;

    //当前拥有指定权限的所有用户的列表
    List<SysUser> sysUsers=new ArrayList<>();
    HashMap map = new HashMap<>();

    public Integer getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public Integer getPid() {
        return pid;
    }

    public List<SysUser> getSysUsers() {
        return sysUsers;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public void setSysUsers(List<SysUser> sysUsers) {
        this.sysUsers = sysUsers;
    }

    @Override
    public String toString() {
        return "Role{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pid=" + pid +
                ", sysUsers=" + sysUsers +
                '}';
    }
}
